package cn.itsource.romate.api;

import cn.itsource.pojo.vo.RealPointVo;
import cn.itsource.result.R;
import cn.itsource.romate.fallback.PhoenixFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import java.util.List;

/**
 * 📖：beishan
 * 🗓️：2024/4/17 10:17
 * =====================
 */
@FeignClient(value = "it-fccar-service-phoenix",fallbackFactory = PhoenixFallBack.class)
public interface PhoenixApi {

    @PostMapping("/romate/api/phoenix")
    R<List<RealPointVo>> locationByOrderId(@RequestParam String orderId);
}
